FROM ubuntu:16.04

MAINTAINER liuxiaolu 349281613@qq.com
ADD  dependencies ./
RUN  chmod 777 dependencies
RUN ./dependencies
ADD  install  ./
RUN  chmod 777 install 
RUN ./install
ADD  start ./
RUN chmod 777 start
ENTRYPOINT [ "/start" ]
RUN rm -rf /var/lib/apt/list/*
RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container
ENV STELLAR_CORE_VERSION=15.2.0-440.54b03f7.xenial
ENV HORIZON_VERSION=1.13.1-94
RUN mkdir -p /opt/stellar
RUN touch /opt/stellar/.docker-ephemeral
RUN ln -s /opt/stellar /stellar 
RUN ln -s /opt/stellar/core/etc/stellar-core.cfg /stellar-core.cfg
RUN ln -s /opt/stellar/horizon/etc/horizon.env /horizon.env 
ADD common /opt/stellar-default/common
ADD pubnet /opt/stellar-default/pubnet
ADD testnet /opt/stellar-default/testnet
ADD standalone /opt/stellar-default/standalone 



EXPOSE  1570 8000 31402


